package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.search.template.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserInfoTemplateRepository extends ElasticsearchRepository<UserInfoTemplate, Long> {
    /**
     * 站内搜索之通过目的地的(城市)名字查询用户
     * @param city
     * @return
     */
    List<UserInfoTemplate> findByCity(String city);
}
